#!/bin/bash

# 构建前端
cd ../front
npm run build:prod
cd ../central
rm -rf src/main/resources/static/*
mv $(pwd)/../front/dist/* $(pwd)/src/main/resources/static

# 构建后台
$(pwd)/gradlew 'build'